<template>
  <div id="app">
    <div class="header">网页头部</div>
    <div class="content">
      <!--放组件的地方  -->
      <ul>
       
      <Shop :lis="list" />    
      <!-- <Shop v-for="(item,index) in list" :item="item" :key="index"/> -->

      </ul>
      
      


    </div>
    <div class="footer">网页底部</div>
  </div>
</template>

<script>
import Shop from "./components/Shop.vue";
import {list} from "./data.js";
//暴露出去
export default {
  name: 'App',
  methods: {

  },
  mounted() {
     console.log(this.list);
  },
  data() {
    return {
      list,

    }
  },
  components: {
    Shop,
  },

}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

* {
  margin: 0;
  padding: 0;
}

.footer,
.header {
  width: 1200px;
  height: 80px;
  margin: 0 auto;
  background-color: skyblue;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  color: #fff;
}

.content {
  width: 1200px;
  padding: 10px 0;
  margin: 0 auto;
}
ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
      }
.footer {
  height: 300px;
  font-size: 100px;
}
</style>
